<?php
	require_once("db_functions.php");
	
	if( !isset($_POST["feedstring"]) || !isset($_POST["userid"]) )
	{
		die("");
	}
	$feedstring = $_POST["feedstring"];
	$userId = $_POST["userid"];
	
	$feedId = CreateFeed($userId, $feedstring);
	$feedUrl = GetFeedUrl($feedId);
	echo $feedId."|".$feedstring."|".$feedUrl;
?>